public class Teacher extends Person {
    public String teacherID;
    public String department;
    public int salary;
    public static String schoolName;
    public Teacher(){};
    public Teacher(String id, String name, String gender, String birthday, String nationality,
                   String teacherID, String department, int salary, String schoolName)
    {
        super(id, name, gender, birthday, nationality);
        this.teacherID = teacherID;
        this.department = department;
        this.salary = salary;
        Teacher.schoolName = schoolName;
    }

    @Override
    public String toString ()
    {
        return "Teacher {" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + gender + '\'' +
                ", birthday='" + birthday + '\'' +
                ", nationality='" + nationality + '\'' +
                ", teacherID='" + teacherID + '\'' +
                ", department='" + department + '\'' +
                ", salary=" + salary +
                ", schoolName='" + schoolName + '\'' +
                '}';
    }
    public void teaching(Student student, String course)
    {
        System.out.println(this.name + "正在给" + student.name + "上"+ course);
    }

    @Override
    public void Working(String info)
    {
        System.out.println(this.name + "正在给准备" + info);
    }
}
